package org.sdsc.crms.dao;

import org.sdsc.crms.entity.security.Dept;
import org.sdsc.modules.orm.hibernate.HibernateDao;
import org.springframework.stereotype.Repository;
import org.springframework.util.Assert;

@Repository
public class DeptDao extends HibernateDao<Dept, Long> {

	public Dept get(Long id) {
		Assert.notNull(id, "id不能为空");
		return (Dept) getSession().get(entityClass, id);

	}

}
